package com.zimin.cloud.wiki.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zimin.mapper.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 文档
 * </p>
 *
 * @author zimin
 * @since 2021-10-27 21:02
 */
@Getter
@Setter
@TableName("wiki_doc")
@ApiModel(value = "Doc对象", description = "文档")
public class Doc extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("电子书id")
    @TableField("ebook_id")
    private String ebookId;

    @ApiModelProperty("父id")
    @TableField("parent")
    private String parent;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("顺序")
    @TableField("sort")
    private Integer sort;

    @ApiModelProperty("阅读数")
    @TableField("view_count")
    private Integer viewCount;

    @ApiModelProperty("点赞数")
    @TableField("vote_count")
    private Integer voteCount;


}
